﻿using Estsh.Core.Base;
using Estsh.Core.Model.Extend.Models;
using Estsh.Core.Models;
using Estsh.Core.Repositories;
using Estsh.Core.Services;
using Estsh.Core.Wms.IRepositories;
using Estsh.Core.Wms.IServices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Estsh.Core.Wms.Services
{
    public class OutSourceShippingService : BaseService<BaseEntity>, IOutSourceShippingService
    {
        private readonly IOutSourceShippingRepository _service;
        public OutSourceShippingService(IOutSourceShippingRepository iRepository) : base(iRepository)
        {
            _service = iRepository;
        }

        public List<WmsOutstock_Extend> GetOutStocks(string orderNo)
        {
            List<WmsOutstock_Extend> extends=_service.GetOutstocks(orderNo);
            return extends;
        }

        public List<WmsOutstockDetail> GetOutstockDetails(string orderNo)
        {
            List<WmsOutstockDetail> outstockDetails=_service.GetOutstockDetails(orderNo);
            return outstockDetails;
        }
    }
}
